#!/bin/bash

if [ $# -eq 1 ]; then
 echo "kubernetes dashboard token:"
 echo $(kubectl get secret -nkubernetes-dashboard $(kubectl get secret -n kubernetes-dashboard|grep dashboard-token |awk '{print $1}')     -o jsonpath='{.data.token}'  | base64 --decode)

 echo "访问地址 https://192.168.99.10:32000/ "
else
 ssh -i private_key -o StrictHostKeyChecking=no root@192.168.99.10 "cd /vagrant/; $0 get"
fi

